#include	"Stats.h"

/*
--	Constructor / Destructor
*/
Stats::Stats(int hp /* = 0*/, int atk /* = 0*/, int def /* = 0*/, \
			int spd /* = 0*/, int sat /* = 0*/, int sdf /* = 0*/)
{
	_HP = hp;
	_Atk = atk;
	_Def = def;
	_Spd = spd;
	_Sat = sat;
	_Sdf = sdf;
}

Stats::Stats(const Stats &r)
{
	*this = r;
}
Stats::~Stats()
{
}

/*
--	Operator
*/
const Stats &	Stats::operator =(const Stats &right)
{
	if (this != &right)
	{
		this->_HP = right._HP;
		this->_Atk = right._Atk;
		this->_Def = right._Def;
		this->_Spd = right._Sdf;
		this->_Sat = right._Sat;
		this->_Sdf = right._Sdf;
	}
	return (*this);
}
/*
--	Accessor
*/
const int		Stats::getHP() const
{
	return (this->_HP);
}

const int		Stats::getAtk() const
{
	return (this->_Atk);
}

const int		Stats::getDef() const
{
	return (this->_Def);
}

const int		Stats::getSpd() const
{
	return (this->_Spd);
}

const int		Stats::getSat() const
{
	return (this->_Sat);
}

const int		Stats::getSdf() const
{
	return (this->_Sdf);
}

/*
--	Mutator
*/
void			Stats::setHP(int val)
{
	this->_HP = val;
	return ;
}

void			Stats::setAtk(int val)
{
	this->_Atk = val;
	return ;
}

void			Stats::setDef(int val)
{
	this->_Def = val;
	return ;
}

void			Stats::setSpd(int val)
{
	this->_Spd = val;
	return ;
}

void			Stats::setSat(int val)
{
	this->_Sat = val;
	return ;
}

void			Stats::setSdf(int val)
{
	this->_Sdf = val;
	return ;
}

